package com.tubang.logistics.entity;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 账单表
 * </p>
 *
 * @author youtanzhi
 * @since 2018-03-25
 */
@TableName("tb_logistics_bill")
public class LogisticsBill extends Model<LogisticsBill> {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	private String id;
	/**
	 * 账单编号
	 */
	private String num;
	/**
	 * 订单编号
	 */
	@TableField("order_id")
	private String orderId;
	/**
	 * 订单编号
	 */
	@TableField("order_num")
	private String orderNum;
	/**
	 * 用户类型
	 */
	@TableField("user_type")
	private String userType;
	/**
	 * 用户名
	 */
	@TableField("user_name")
	private String userName;
	/**
	 * 用户电话
	 */
	@TableField("user_mobile")
	private String userMobile;
	@TableField("user_id")
	private String userId;
	/**
	 * 货品名称
	 */
	@TableField("goods_name")
	private String goodsName;
	/**
	 * 货品重量
	 */
	@TableField("goods_weight")
	private Double goodsWeight;
	/**
	 * 货品总重量
	 */
	@TableField("goods_aweight")
	private Double goodsAweight;
	/**
	 * 现金
	 */
	@TableField("money_cash")
	private Double moneyCash;
	/**
	 * 油气费
	 */
	@TableField("money_ag")
	private Double moneyAg;
	/**
	 * 通行费
	 */
	@TableField("money_tra")
	private Double moneyTra;
	/**
	 * 其他费
	 */
	@TableField("money_oth")
	private Double moneyOth;
	/**
	 * 运输总费用
	 */
	@TableField("money_amount")
	private Double moneyAmount;
	/**
	 * 公司 id 司机id
	 */
	@TableField("carrier_id")
	private String carrierId;
	/**
	 * 承运商
	 */
	private String carrier;
	/**
	 * 承运商手机号
	 */
	@TableField("carrier_mobile")
	private String carrierMobile;
	/**
	 * 0:未审核  1:已审核  2:已结算
	 */
	@TableField("status_code")
	private String statusCode;
	@TableField("status_code_desc")
	private String statusCodeDesc;
	/**
	 * 指派拒绝原因
	 */
	private String reason;
	/**
	 * 备注
	 */
	private String remarks;
	@TableField("addr_from")
	private String addrFrom;
	@TableField("addr_to")
	private String addrTo;
	/**
	 * 结算周期：300-预付；301-到付；302-回单付
	 */
	@TableField("pay_period")
	private String payPeriod;
	/**
	 * 支付方式 0 线上。1 线下。
	 */
	@TableField("pay_type")
	private Integer payType;
	/**
	 * 是否开发票
	 */
	@TableField("invoice_flag")
	private String invoiceFlag;
	/**
	 * 审批人id
	 */
	@TableField("admin_user_id")
	private String adminUserId;
	/**
	 * 审批人名
	 */
	@TableField("admin_user_name")
	private String adminUserName;
	/**
	 * 审批人审批时间
	 */
	@TableField("admin_user_time")
	private Date adminUserTime;
	/**
	 * 运输结束时间（冗余）
	 */
	@TableField("finish_time")
	private Date finishTime;
	/**
	 * 结算单id
	 */
	@TableField("sett_id")
	private String settId;
	/**
	 * 是否可用
	 */
	private String enable;
	/**
	 * 创建时间
	 */
	@TableField("create_time")
	private Date createTime;
	/**
	 * 更新时间
	 */
	@TableField("update_time")
	private Date updateTime;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserMobile() {
		return userMobile;
	}

	public void setUserMobile(String userMobile) {
		this.userMobile = userMobile;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public Double getGoodsWeight() {
		return goodsWeight;
	}

	public void setGoodsWeight(Double goodsWeight) {
		this.goodsWeight = goodsWeight;
	}

	public Double getGoodsAweight() {
		return goodsAweight;
	}

	public void setGoodsAweight(Double goodsAweight) {
		this.goodsAweight = goodsAweight;
	}

	public Double getMoneyCash() {
		return moneyCash;
	}

	public void setMoneyCash(Double moneyCash) {
		this.moneyCash = moneyCash;
	}

	public Double getMoneyAg() {
		return moneyAg;
	}

	public void setMoneyAg(Double moneyAg) {
		this.moneyAg = moneyAg;
	}

	public Double getMoneyTra() {
		return moneyTra;
	}

	public void setMoneyTra(Double moneyTra) {
		this.moneyTra = moneyTra;
	}

	public Double getMoneyOth() {
		return moneyOth;
	}

	public void setMoneyOth(Double moneyOth) {
		this.moneyOth = moneyOth;
	}

	public Double getMoneyAmount() {
		return moneyAmount;
	}

	public void setMoneyAmount(Double moneyAmount) {
		this.moneyAmount = moneyAmount;
	}

	public String getCarrierId() {
		return carrierId;
	}

	public void setCarrierId(String carrierId) {
		this.carrierId = carrierId;
	}

	public String getCarrier() {
		return carrier;
	}

	public void setCarrier(String carrier) {
		this.carrier = carrier;
	}

	public String getCarrierMobile() {
		return carrierMobile;
	}

	public void setCarrierMobile(String carrierMobile) {
		this.carrierMobile = carrierMobile;
	}

	public String getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}

	public String getStatusCodeDesc() {
		return statusCodeDesc;
	}

	public void setStatusCodeDesc(String statusCodeDesc) {
		this.statusCodeDesc = statusCodeDesc;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getAddrFrom() {
		return addrFrom;
	}

	public void setAddrFrom(String addrFrom) {
		this.addrFrom = addrFrom;
	}

	public String getAddrTo() {
		return addrTo;
	}

	public void setAddrTo(String addrTo) {
		this.addrTo = addrTo;
	}

	public String getPayPeriod() {
		return payPeriod;
	}

	public void setPayPeriod(String payPeriod) {
		this.payPeriod = payPeriod;
	}

	public Integer getPayType() {
		return payType;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public String getInvoiceFlag() {
		return invoiceFlag;
	}

	public void setInvoiceFlag(String invoiceFlag) {
		this.invoiceFlag = invoiceFlag;
	}

	public String getAdminUserId() {
		return adminUserId;
	}

	public void setAdminUserId(String adminUserId) {
		this.adminUserId = adminUserId;
	}

	public String getAdminUserName() {
		return adminUserName;
	}

	public void setAdminUserName(String adminUserName) {
		this.adminUserName = adminUserName;
	}

	public Date getAdminUserTime() {
		return adminUserTime;
	}

	public void setAdminUserTime(Date adminUserTime) {
		this.adminUserTime = adminUserTime;
	}

	public Date getFinishTime() {
		return finishTime;
	}

	public void setFinishTime(Date finishTime) {
		this.finishTime = finishTime;
	}

	public String getSettId() {
		return settId;
	}

	public void setSettId(String settId) {
		this.settId = settId;
	}

	public String getEnable() {
		return enable;
	}

	public void setEnable(String enable) {
		this.enable = enable;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "LogisticsBill{" +
				"id=" + id +
				", num=" + num +
				", orderId=" + orderId +
				", orderNum=" + orderNum +
				", userType=" + userType +
				", userName=" + userName +
				", userMobile=" + userMobile +
				", userId=" + userId +
				", goodsName=" + goodsName +
				", goodsWeight=" + goodsWeight +
				", goodsAweight=" + goodsAweight +
				", moneyCash=" + moneyCash +
				", moneyAg=" + moneyAg +
				", moneyTra=" + moneyTra +
				", moneyOth=" + moneyOth +
				", moneyAmount=" + moneyAmount +
				", carrierId=" + carrierId +
				", carrier=" + carrier +
				", carrierMobile=" + carrierMobile +
				", statusCode=" + statusCode +
				", statusCodeDesc=" + statusCodeDesc +
				", reason=" + reason +
				", remarks=" + remarks +
				", addrFrom=" + addrFrom +
				", addrTo=" + addrTo +
				", payPeriod=" + payPeriod +
				", payType=" + payType +
				", invoiceFlag=" + invoiceFlag +
				", adminUserId=" + adminUserId +
				", adminUserName=" + adminUserName +
				", adminUserTime=" + adminUserTime +
				", finishTime=" + finishTime +
				", settId=" + settId +
				", enable=" + enable +
				", createTime=" + createTime +
				", updateTime=" + updateTime +
				"}";
	}
}
